package com.lins.storedisk.controller;

import com.lins.storedisk.utils.YzmImageUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * @Author linshuo
 * @Date 2023/12/1 13:07
 */
@RestController
@RequestMapping("common")
public class CommonController {

    @GetMapping("getYzmImage")
    public void getYzmImage(HttpSession session, HttpServletResponse response) throws IOException {
        YzmImageUtil.getYzmImage(session,response);
    }

}
